package com.example.demo.core.web.core.model;

import lombok.Builder;
import lombok.Data;

/**
 * 错误码对象
 *
 * <p>全局错误码，占用 [0, 999],
 *
 * @author airhead
 */
@Data
@Builder
public class ErrorCode {

  /** 错误码 */
  private final Integer code;

  /** 错误提示 */
  private final String msg;

  public ErrorCode(Integer code, String message) {
    this.code = code;
    this.msg = message;
  }
}
